package com.zhiche.lisa.lspm.dao.model.lsp;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * <p>
 * 商户实体创建失败日志
 * </p>
 *
 * @author qichao
 * @since 2018-08-02
 */
@TableName("lisa_lsp_create_log")
public class LspCreateLog extends Model<LspCreateLog> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 全称
     */
	private String name;
    /**
     * 简称
     */
	@TableField("name_abbr")
	private String nameAbbr;
    /**
     * 法人电话
     */
	@TableField("rep_mobile")
	private String repMobile;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 纳税人识别号
     */
	@TableField("taxpayer_id")
	private String taxpayerId;
    /**
     * 注册地址
     */
	@TableField("registry_site")
	private String registrySite;
    /**
     * 法人姓名
     */
	@TableField("legal_rep")
	private String legalRep;
    /**
     * 注册资本
     */
	@TableField("registry_capital")
	private BigDecimal registryCapital;
    /**
     * 有效期开始时间
     */
	private Date startdate;
    /**
     * 有效期结束时间
     */
	private Date enddate;
    /**
     * 创建人/来源
     */
	@TableField("creator")
	private String creator;
    /**
     * 创建成功的标志，默认0，若成功，置为1
     */
	@TableField("is_success")
	private Integer isSuccess;
    /**
     * 业务系统id
     */
	@TableField("lsp_id")
	private String lspId;
    /**
     * 尝试创建的次数，默认0
     */
	@TableField("try_times")
	private Integer tryTimes;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 更新时间
     */
	@TableField("gmt_modify")
	private Date gmtModify;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameAbbr() {
		return nameAbbr;
	}

	public void setNameAbbr(String nameAbbr) {
		this.nameAbbr = nameAbbr;
	}

	public String getRepMobile() {
		return repMobile;
	}

	public void setRepMobile(String repMobile) {
		this.repMobile = repMobile;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public String getTaxpayerId() {
		return taxpayerId;
	}

	public void setTaxpayerId(String taxpayerId) {
		this.taxpayerId = taxpayerId;
	}

	public String getRegistrySite() {
		return registrySite;
	}

	public void setRegistrySite(String registrySite) {
		this.registrySite = registrySite;
	}

	public String getLegalRep() {
		return legalRep;
	}

	public void setLegalRep(String legalRep) {
		this.legalRep = legalRep;
	}

	public BigDecimal getRegistryCapital() {
		return registryCapital;
	}

	public void setRegistryCapital(BigDecimal registryCapital) {
		this.registryCapital = registryCapital;
	}

	public Date getStartdate() {
		return startdate;
	}

	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}

	public Date getEnddate() {
		return enddate;
	}

	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Integer getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(Integer isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getLspId() {
		return lspId;
	}

	public void setLspId(String sourceId) {
		this.lspId = lspId;
	}

	public Integer getTryTimes() {
		return tryTimes;
	}

	public void setTryTimes(Integer tryTimes) {
		this.tryTimes = tryTimes;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "LspCreateLog{" +
			", id=" + id +
			", name=" + name +
			", nameAbbr=" + nameAbbr +
			", repMobile=" + repMobile +
			", tenantId=" + tenantId +
			", taxpayerId=" + taxpayerId +
			", registrySite=" + registrySite +
			", legalRep=" + legalRep +
			", registryCapital=" + registryCapital +
			", startdate=" + startdate +
			", enddate=" + enddate +
			", creator=" + creator +
			", isSuccess=" + isSuccess +
			", lspId=" + lspId +
			", tryTimes=" + tryTimes +
			", gmtCreate=" + gmtCreate +
			", gmtModify=" + gmtModify +
			"}";
	}
}
